package com.suntown;

import com.suntown.util.TestMySQL;
import javafx.scene.control.Alert;

public class ConsoleMain{
    public static void main(String[] args){
        String password = System.getProperty("pwd");
        if(password == null || "".equals(password)){
            password = "@@@Sxdag2022!!!";
        }
        int iresult = TestMySQL.execute("root",password);
        if(iresult == 0){
            System.err.println("connect failed,please check the password of database!");
        }else if(iresult == -1){
            System.err.println("connect failed,please check the status of mysql database!");
        }else{
            System.err.println("update complete,the login password change to 123");
        }
    }
}
